<!DOCTYPE html>
<html lang="ar">
<head>
    <title>الاتفاقيات</title>
	
	<?php $this->load->helper('url');?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8">

<!---------------------for autocomplete--------------->
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/jquery-ui.css")?>" rel="stylesheet" type="text/css" />
	<!------------------------------------------------------>
<!---------------------for form css ----------------------->
	<link href="<?php echo base_url("assets/css/pure.css")?>" rel="stylesheet" type="text/css" />
	
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.tablesorter.min.js');?>" ></script>
		<link href="<?php echo base_url("assets/css/table.css")?>" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url("assets/css/ch_menu.css")?>" rel="stylesheet" type="text/css" />
	 <link href="<?php echo base_url("assets/css/botton.css")?>" rel="stylesheet" type="text/css" />
	
</head>


<?php include_once('header.php');

		//$r=$les_convention;
		 $this->load->library('session');
        $num_ar=$this->session->userdata('data_charticle'); //access it
        $chcl=$num_ar;
		
	//	echo form_open_multipart( base_url('/etat_financier_ctr/valider_transfert')); 
 ?>
 




<form id="transfert" class="pure-form pure-form-stacked" style="width: 60%; margin-right: 30%;" method="POST" action="<?php echo base_url('/etat_financier_ctr/valider_transfert');?>">
    
        <legend style="font-size: 180%; ">اجراء تحويل: </legend>

        <div class="pure-g">
		 
		  
		     <div class="pure-u-1 pure-u-md-1-3" style="width: 30%">
                <label for="fournisseur">الرقم </label>
				<input id="fournisseur" name="numero" type="text" value="">
            </div>
		
            <div class="pure-u-1 pure-u-md-1-3" style="width: 80%">
                <label for="fournisseur">المادة المصدر </label>
				<select name="source" id="sour" class="arabic">
				<?PHP 
				for($i = 0; $i < sizeof($num_ar); $i++){
					echo('<option value="'.$num_ar[$i]->id_article.'">'.$num_ar[$i]->nom_art.'</option>');
				}
?> 
</select>		
            </div>
			
		
            <div class="pure-u-1 pure-u-md-1-3" style="width: 80%">
                <label for="fournisseur">المادة الوجهة </label>
				<select name="destination" id="sour" class="arabic">
				<?PHP 
				for($i = 0; $i < sizeof($num_ar); $i++){
					echo('<option value="'.$num_ar[$i]->id_article.'">'.$num_ar[$i]->nom_art.'</option>');
				}
?> 
</select>

			
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3" style="width: 30%">
                <label for="fournisseur">المبلغ </label>
				<input id="fournisseur" name="montant" type="text" value="0">
            </div>
			
			

		
		 
			
			 </div>
<?php
	  	echo('<input type="submit" id="ajouter" value="تحويل"  class="pure-button pure-button-primary" /> 
	<a href="'.base_url("/etat_financier_ctr/").'" title="الغاء " class="pure-button pure-button-primary" >الغاء</a> ');
?>
	
		</form>


  <script>
 $(document).ready(function() 
    { 
        $("#myTable").tablesorter(); 
    } 
); 
 </script>  
  <script>
$(function() {
	var liste_fourniss = <?php echo json_encode($liste_des_fournisseurs); ?>;
	$( "#nom" ).autocomplete({source: liste_fourniss});
	} 
); 
</script> 

</html>